package com.huli.vo;

import com.huli.pojo.SysOrganization;
import lombok.Data;

import java.util.List;

@Data
public class OrganizationUserVo {
    // 组织id
    private Long id;
    // 组织名称
    private String orgName;
    // 电话
    private String orgPhone;
    // 地址
    private String address;

    // 当前页码
    private Integer pageNum = 1;
    // 每页显示条数
    private Integer pageSize = 10;

    // 构造函数，传入总记录数和用户列表
    public OrganizationUserVo(Long total, List userList) {
        this.total = total;
        this.userList = userList;
    }

    // 总记录数
    private Long total;
    // 用户列表
    private List userList;

    // 无参构造函数
    public OrganizationUserVo() {
    }

    // 带参构造函数
    public OrganizationUserVo(String orgName, String orgPhone, String address, Integer pageNum, Integer pageSize) {
        this.orgName = orgName;
        this.orgPhone = orgPhone;
        this.address = address;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }


    // 获取组织名称
    public String getOrgName() {
        return orgName;
    }

    // 设置组织名称
    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    // 获取电话
    public String getOrgPhone() {
        return orgPhone;
    }

    // 设置电话
    public void setOrgPhone(String orgPhone) {
        this.orgPhone = orgPhone;
    }

    // 获取地址
    public String getAddress() {
        return address;
    }

    // 设置地址
    public void setAddress(String address) {
        this.address = address;
    }

    // 获取当前页码
    public Integer getPageNum() {
        return pageNum;
    }

    // 设置当前页码
    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    // 获取每页显示条数
    public Integer getPageSize() {
        return pageSize;
    }

    // 设置每页显示条数
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    // 获取总记录数
    public Long getTotal() {
        return total;
    }

    // 设置总记录数
    public void setTotal(Long total) {
        this.total = total;
    }

    // 获取用户列表
    public List getUserList() {
        return userList;
    }

    // 设置用户列表
    public void setUserList(List userList) {
        this.userList = userList;
    }

    // 重写toString方法
    @Override
    public String toString() {
        return "OrganizationUserVo{" +
                "orgName='" + orgName + '\'' +
                ", orgPhone='" + orgPhone + '\'' +
                ", address='" + address + '\'' +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", total=" + total +
                ", userList=" + userList +
                '}';
    }
}
